
class ParamsModel {
  String id = "";
  String defaultId = "";
  String name = "";
  String code = "";
  String setting = "";
  String value = "";
  String defaultValue = "";
  String customCode = "";

  Map<String, String> realValue = {};
  Map<String, String> value_show = {};

  ParamsModel({
    this.id = "",
    this.defaultId = "",
    this.name = "",
    this.code = "",
    this.setting = "",
    this.value = "",
    this.defaultValue = "",
    this.customCode = "",
  });

  ParamsModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    name = json['name'];
    code = json['code'];
    setting = json['setting'];
    value = json['value'];
    customCode = json["customCode"];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['name'] = this.name;
    data['code'] = this.code;
    data['setting'] = this.setting;
    data['value'] = this.value;
    data["customCode"] = this.customCode;
    return data;
  }

  @override
  String toString() {
    // TODO: implement toString
    return "code: ${code}, value: $value, realValue: $realValue";
  }
}

